]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Set the correct index on images
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 14 Mar 2013 20:45:29 +0000 (16:45 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 14 Mar 2013 21:48:07 +0000 (17:48 -0400)
The pattern is underneath, so we need to add one. It turns out
that ClutterGroup doesn't care about that, but we need to do this
to remove deprecations in mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=695882

js/ui/background.js

index 6d6089b5cb6c2bc0d58c8837c465fd4e8e90f1c6..bb1b2f8d05618a53585c857357065277e62c7bbc 100644 (file)
@@ -356,7 +356,10 @@ const Background = new Lang.Class({
 
         let actor = new Meta.BackgroundActor();
         actor.content = content;
-        this.actor.insert_child_at_index(actor, index);
+
+        // The background pattern is the first actor in
+        // the group, and all images should be above that.
+        this.actor.insert_child_at_index(actor, index + 1);
 
         this._images[index] = actor;
         this._watchCacheFile(filename);